package com.czg.designmode.factory.simple;

/**
 * 水果枚举类
 *
 * @author chenzhigang
 */
@SuppressWarnings("AlibabaEnumConstantsMustHaveComment")
public enum FruitEnum {
    APPLE("apple", "苹果"),
    BANANA("banana", "香蕉"),
    PEAR("pear", "梨"),
    ;

    /**
     * 水果名称
     */
    private String name;

    /**
     * 水果描述
     */
    private String desc;

    FruitEnum() {
    }

    FruitEnum(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
